/* 
 * Hawk - A Component Based Test Framework
 *
 * Copyright (C) 2010 http://code.google.com/p/hawk-framework/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 */
package org.hawk.applications.finder.android.gui;

import org.hawk.applications.finder.android.gui.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

/**
 * Matching activity tab. This tab is responsible to starts and show the
 * matching results
 * 
 * @author Rodrigo Prestes Machado
 */
public class MatchingActivity extends Activity {

	/**
	 * Method to create the user interface
	 */
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.matching);

		Button buttonMatching = (Button) findViewById(R.id.buttonMatching);
		buttonMatching.setOnClickListener(new StartMatchingEvent());
	}

	/**
	 * Class that starts the matching among near devices
	 */
	public class StartMatchingEvent implements OnClickListener {
		public void onClick(View v) {
			Toast.makeText(MatchingActivity.this, "Matching Started",
					Toast.LENGTH_SHORT).show();
		}
	}

}